import 'package:result_dart/functions.dart';
import 'package:result_dart/result_dart.dart';

Result<String> getSomething() {
  final isOk = true;

  if(isOk) {
    return successOf("success");
  } else {
    return failureOf(Exception("failure"));
  }
}